package cn.b.sky.mes.mm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import cn.b.sky.mes.mm.dao.RequirementdistributionDao;
import cn.b.sky.mes.mm.model.Requirement;
import cn.b.sky.mes.mm.service.RequirementdistributionService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

@Service("requirementdistributionService")
public class RequirementdistributionServiceImpl implements RequirementdistributionService {

  @Resource
  RequirementdistributionDao requirementdistributionDao;

  @Override
  public List<Requirement> selectDistributiontProductionByDistributionNum(String siteCode, String distributionNum) {
    if (StringUtils.isBlank(siteCode) || StringUtils.isBlank(distributionNum)) {
      return null;
    }  
    return requirementdistributionDao.selectDistributiontProductionByDistributionNum(siteCode, distributionNum);
  }
  	
}

